// routes/articleRoutes.js
const express = require("express");
const router = express.Router();
const shopController = require("../controllers/shop");

router.get("/shop", shopController.list);
router.post("/shop/add", shopController.add);
router.post("/shop/update", shopController.update);
router.post("/shop/del", shopController.del);
router.post("/shop/type/add", shopController.addShopType);
router.post("/shop/type/del", shopController.delShopType);
router.post("/shop/upload/logo", shopController.uploadLogo);
router.post("/shop/upload/cover", shopController.uploadCover);
router.get("/getShopByType", shopController.getShopByType);
router.get("/getShopById", shopController.getShopById);

module.exports = router;
